package com.example.guiguihomemedical.controller;

import com.example.guiguihomemedical.common.Result;
import com.example.guiguihomemedical.entity.dto.CountTotal;
import com.example.guiguihomemedical.service.CountTotalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("counttotal")
public class CountTotalController {
    @Autowired
    private CountTotalService countTotalService;
    @GetMapping
    public Result getCountTotal(){
        CountTotal countTotal=countTotalService.getCountTotal();
        return Result.success(countTotal);
    }
}
